import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 全局引入vant ui
import Vant from 'vant'
import 'vant/lib/index.css';
import animate from 'animate.css'
import './assets/css/reset.css'
import 'lib-flexible'
//从本地读取用户信息
var userIfo =localStorage.getItem('userIfo')
if(userIfo){
  store.commit('user/initUserIfoMut',JSON.parse(userIfo))
}
Vue.use(Vant)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
